package com.ruoyi.pos.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 退货对象 _reject_item
 * 
 * @author wzh
 * @date 2021-05-20
 */
public class RejectItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id标识 */
    private Long id;

    /** 退款订单id */
    @Excel(name = "退款订单id")
    private Long rejectId;

    /** 商品条形码 */
    @Excel(name = "商品条形码")
    private String itemCode;

    /** 退货数量 */
    @Excel(name = "退货数量")
    private Long quantity;

    /** 退款金额 */
    @Excel(name = "退款金额")
    private BigDecimal rejectPrice;

    /** 退款总金额，quantity*reject_price */
    @Excel(name = "退款总金额，quantity*reject_price")
    private BigDecimal total;

    /** 退款理由 */
    @Excel(name = "退款理由")
    private String rejectReason;

    /** 退款方式。1：现金，2：支付宝，3：微信 */
    @Excel(name = "退款方式。1：现金，2：支付宝，3：微信")
    private Integer rejectType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRejectId(Long rejectId) 
    {
        this.rejectId = rejectId;
    }

    public Long getRejectId() 
    {
        return rejectId;
    }
    public void setItemCode(String itemCode) 
    {
        this.itemCode = itemCode;
    }

    public String getItemCode() 
    {
        return itemCode;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setRejectPrice(BigDecimal rejectPrice) 
    {
        this.rejectPrice = rejectPrice;
    }

    public BigDecimal getRejectPrice() 
    {
        return rejectPrice;
    }
    public void setTotal(BigDecimal total) 
    {
        this.total = total;
    }

    public BigDecimal getTotal() 
    {
        return total;
    }
    public void setRejectReason(String rejectReason) 
    {
        this.rejectReason = rejectReason;
    }

    public String getRejectReason() 
    {
        return rejectReason;
    }
    public void setRejectType(Integer rejectType) 
    {
        this.rejectType = rejectType;
    }

    public Integer getRejectType() 
    {
        return rejectType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("rejectId", getRejectId())
            .append("itemCode", getItemCode())
            .append("quantity", getQuantity())
            .append("rejectPrice", getRejectPrice())
            .append("total", getTotal())
            .append("rejectReason", getRejectReason())
            .append("rejectType", getRejectType())
            .toString();
    }
}
